#include "Student.h"

int main(int argc, char *argv[]){
  int n = 10;
  Student A[10]={Student(1653,'M',4.5),Student(3361,'C',3.7),Student(8739,'P',4.0),
		 Student(2673,'P',4.0),Student(3187,'C',4.2),Student(6629,'P',2.9),
		 Student(9230,'M',4.5),Student(2736,'P',3.0),Student(8765,'M',2.5),
		 Student(4931,'P',3.6)};
  std::cout << "before sorting:" << std::endl;
  for (int i = 0 ; i < n ; i++ )
    A[i].printout();
  sort_m(A,10);
  std::cout << "after sorting by major:" << std::endl;
  for (int i = 0 ; i < n ; i++ )
    A[i].printout();
  arrange(A,10);
  std::cout << "after sorting by GPA:" << std::endl;
  for (int i = 0 ; i < n ; i++ )
    A[i].printout();
  return 0;
}
